package cc.lirns.utils.result.entity;

import cc.lirns.utils.result.Result;
import lombok.Data;

/**
 * @author lirns
 * @date 2021/12/2 13:42
 */
@Data
public class EntityResult implements Result {
    /**
     * 状态码
     */
    public final Integer code;
    /**
     * 消息
     */
    public final String msg;
    /**
     * 数据
     */
    public final Object data;

    public EntityResult() {
        code = null;
        msg = null;
        data = null;
    }

    public EntityResult(Integer code, String msg, Object data) {
        this.code = code;
        this.msg = msg;
        this.data = data;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }
}
